-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding PowerQuery language definition #3802
Conversation
Just wanted to bump this PR. |
👋 Hey @mattmasson, sorry to keep you waiting! The in-the-wild usage looks a little too light: of the 72 URLs collected from the current search results, I only counted 21 unique repositories, distributed between 16 GitHub users:
Please make sure you've read our guidelines on what we require of a language or extension before it can be registered on GitHub. Note this part in particular:
Are there any other file extensions we could be checking, which have wider usage across GitHub? |
There are a lot of code files using the .M extension (which get incorrectly classified as matlab/m/objective-c...). This was the best combination of common words included in Power Query code I could find, which adds another 73 code files. Other searches could be M topics and PowerQuery topics. |
To add some more data points... The Power Query / M language is published on MSDN, used heavily in Microsoft Power BI, and is built into modern (2016+) versions of Excel. We have about 3 million people using it on a monthly basis. We've only recently published our SDK, so I expect we'll see a big uptake in the number of github projects in the next few months. |
I'd like to support Matt here - this language is about to explode in popularity over the next few months. |
Adding preemptive support on the premise that there will be ample in-the-wild usage in the near future... hrrm, no, sorry. My recommendation is to wait for the language to grow in popularity and usage, then revisit this with a pull-request. |
I think this would be great, though the fact that the source for Power Query queries are predominately stored inside Excel or Power BI files with no easy way to export would explain the lack of usage as it is usually bundled within the file that uses it. Maybe if MS made an easy way to import/export the queries source control might get used more for Power Query/BI |
Power Query ships with every installation of excel 2016, it exists in Power BI desktop and it's even available as the extract transform and load language for the common data model in Microsoft Dynamics. It is very much 'here to stay' so anything that supports it is very much welcome. |
@Alhadis I don't know how you're counting the repositories with a .pq extension but I'd like to point that some are missing. You'll find here two examples (this list is not exhaustive, just a quick check). Due to lack of support for the power query language in github, many users are using the .txt extension such as https://github.com/nimblelearn/datapackage-m |
It doesn't make any sense to do that, though. I'd say the owner of the repository you're linking to is simply unaware of the correct extension for PowerQuery files.
Well, I used whatever happened to turn up in public search results. If those two were missing, it's possible they weren't indexed previously (or they were previously private repositories that've since been made public). /cc @lildude Could you handle this? I'm unsure how to respond. |
I have to agree with @Alhadis. As things currently stand, from what I've read here, and investigated myself, the PowerQuery formula language is not popular enough on GitHub to warrant merging of this PR just yet and we can't pre-emptively plan for future growth as this opens up a huge can of worms for every other aspiring language. Now a few points and questions based on comments in this PR...
This PR will result in them all being identified as PowerQuery so either
If this is the case, is there a reason you've not included the .M extension in this PR? If the concern is conflict with the MatLab files, you can add a heuristic to differentiate these two.
... and ...
... and ...
And there's the rub. If this is all true, then this is currently the biggest limiting factor. The predominant usage and storage of the language, as this stands today, is in "zip" files so not readily readable, and thus not searchable anyway. That said...
... and ...
... would certainly help with increasing the popularity of this language, especially if you're encouraging the use of separate If you're right, and I don't doubt it, it won't be long (a few months?) until we see the usage needed to merge this PR. We really appreciate great PRs like this and I hope you can understand the direction we're coming from. |
Will submit an updated PR |
Hello!
I'd like to add a definition for the Power Query formula language (also know as M).
Search for existing Power Query (.pq) files
One potential extension conflict is with Makefile.pq files, but this extension isn't registered in the languages.yaml file. I'm not sure if there a way to exclude these files explicitly, or if it won't be a problem.
Thanks!